<?php

return array(
    'jqgrid_material_caption' => 'Список',
    'jqgrid_material_col_names' => array(
        'Название', 'Дата создания', 'Дата изменения', 'Активный', 'ID'
    ),
    'jqgrid_material_col_model' => array(
        0 => array(
            'name' => 'title',
            'index' => 'title',
            'width' => 200,
            'editable' => true,
            'search' => true,
            'editrules' => array(
                'required' => true
            )
        ),
        1 => array(
            'name' => 'created',
            'index' => 'created',
            'width' => 160,
            'editable' => false,
            'search' => true,
			'sortable' => true,
            'formatter' => 'date',
            'formatoptions' => array(
                'srcformat' => 'Y-m-d H:i:s',
                'newformat' => 'd.m.Y H:i:s'
            )
        ),
        2 => array(
            'name' => 'updated',
            'index' => 'updated',
            'width' => 160,
            'editable' => false,
            'search' => true,
			'sortable' => true,
            'formatter' => 'date',
            'formatoptions' => array(
                'srcformat' => 'Y-m-d H:i:s',
                'newformat' => 'd.m.Y H:i:s'
            )
        ),
		3 => array(
            'name' => 'status',
            'index' => 'status',
            'width' => 55,
            'editable' => false,
            'search' => true,
			'edittype' => 'checkbox',
            'formatter' => 'checkbox',
            'editoptions' => array('value' => '1:0'),
            'formatoptions' => array('disabled' => true)
        ),
		4 => array(
            'name' => 'id',
            'index' => 'id',
            'width' => 55,
            'editable' => false,
            'search' => true,
        ),
    ),
    'jqgrid_material_navgrid' => array(
        'add' => false,
        'edit' => false,
        'delete' => true,
		'search' => true
    ),
    'jqgrid_material_navgrid_buttons' => array(
        array(
            'buttonicon' => 'ui-icon-pencil',
            'caption' => '',
            'title' => 'Редактировать материал',
            'position' => 'first',
            'onClickHandlerParams' => array(
                'url' => '/materials/admin/edit-material'
            )
        ),
        array(
            'buttonicon' => 'ui-icon-plus',
            'caption' => '',
            'title' => 'Добавить материал',
            'position' => 'first',
            'onClickHandlerParams' => array(
                'url' => '/materials/admin/add-material'
            )
        ),
    ),
);

?>